-
Notifications
You must be signed in to change notification settings - Fork 1.7k
lib: add new apis to support creating processor unit for input and output #9957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Hi, Any updates on this PR? Thanks! |
thanks for this contribution. To get it merged please adjust the code to the expected coding style and add unit tests: |
40a1e79
to
352ac57
Compare
352ac57
to
ef85a58
Compare
This patch introduces new APIs to create a single processor unit for input and output instances: 1. flb_input_processor_unit(flb_ctx_t *ctx, const char *event_type, const char *processor_unit_name, int ffd, …) Create a single input processor unit for a specific event type and unit name 2. flb_output_processor_unit(flb_ctx_t *ctx, const char *event_type, const char *processor_unit_name, int ffd, …) Create a single output processor unit for a specific event type and unit name Signed-off-by: Vanessa Zhang <[email protected]>
use const char* for unit_name Signed-off-by: Vanessa Zhang <[email protected]>
ef85a58
to
6f17e0b
Compare
flb_input_processor_unit and flb_output_processor_unit Signed-off-by: Vanessa Zhang <[email protected]>
This patch introduces new apis to retrieve processor associated with a given input or output plugin: int flb_input_get_processor(flb_ctx_t *ctx, int ffd, struct flb_processor **proc) int flb_output_get_processor(flb_ctx_t *ctx, int ffd, struct flb_processor **proc) Signed-off-by: Vanessa Zhang <[email protected]>
Hi @edsiper, I’ve updated this PR to include the required coding style adjustments, new unit tests, and two new library APIs to support processors. Please let me know if there are any other changes you’d like to see. Thank you for reviewing my code! |
Hi @edsiper, Any updates on this pull request? Thanks, |
Triggered a build of all targets to confirm no funny business on any of them - function exporting can go wonky with some of the older targets. |
Can you rebase @yunzvanessa as looks like Github is now blocking runs on Ubuntu 20 runners? |
My branch should be up-to-date with master branch now. Thank you! |
Summary
flb_input_processor_unit(flb_ctx_t *ctx, const char *event_type, const char *processor_unit_name, int ffd, ...)
: create a processor unit with specific event type and processor unit name for an input plugin.flb_output_processor_unit(flb_ctx_t *ctx, const char *event_type, const char *processor_unit_name, int ffd, ...)
: create a processor unit with specific event type and processor unit name for an output plugin.flb_input_get_processor(flb_ctx_t *ctx, int ffd, struct flb_processor **proc)
: retrieve the processor associated with a given input pluginflb_output_get_processor(flb_ctx_t *ctx, int ffd, struct flb_processor **proc)
: retrieve the processor associated with a given output pluginprocessor
which updates function signature offlb_processor_unit_create
to useconst char*
forunit_name
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
[N/A] Example configuration file for the change:
Debug log output from testing the change:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.